package com.foreknow.dao;

import com.foreknow.entity.Department;

import java.util.List;

public interface DepartmentMapper {

    /**
     * 删除科室信息
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 添加科室信息
     * @param record
     * @return
     */
    int insert(Department record);

    int insertSelective(Department record);

    /**
     * 修改之前查询科室信息
     * @param id
     * @return
     */
    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    /**
     * 修改科室信息
     * @param record
     * @return
     */
    int updateByPrimaryKey(Department record);

    /**
     * 获取科室列表
     * @return
     */
    List<Department> searchAll(Department department);
}